package com.xuyiwei.mayi.mq;

import com.alibaba.fastjson.JSONObject;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jms.core.JmsMessagingTemplate;
import org.springframework.stereotype.Service;

import javax.jms.Destination;

/**
 * Created by xuyiwei on 2019/4/27.
 */
@Service
public class RegisterEmailProducter {
    @Autowired
    private JmsMessagingTemplate jmsMessagingTemplate;

    public void sendMsg(Destination destination, String json){
        jmsMessagingTemplate.convertAndSend(destination,json);
    }
}
